#include "student.h"

Student::Student(QString id,QString name,QString picturePath,QString major,QString grade,QList<QString> borrowBookList)
{
    this->id=id;
    this->name=name;
    this->picturePath=picturePath;
    this->borrowBookList=borrowBookList;
    this->major=major;
    this->grade=grade;
}
Student::Student()
{

}
void Student::setName(QString id)
{
    if(id=="20192333001")
    {
        this->name="张三"; 
    }
    else if(id=="20192333002")
    {
        this->name="李四";
    }
    else
    {
        this->name="王五";
    }
}
void Student::setPicturePath(QString id)
{
    this->picturePath=QString("./image/%1.png").arg(id);
}
